Skip to content

feat: replace plain-text loading states with a Spinner component#393

Merged
zigzagdev merged 4 commits into
mainfrom
feat/loading-spinner
Jun 22, 2026
Merged

feat: replace plain-text loading states with a Spinner component#393
zigzagdev merged 4 commits into
mainfrom
feat/loading-spinner

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Summary

  • Add a Spinner component (centered, animated circle via Tailwind animate-spin) to shared/uis/
  • Replace the plain-text "Loading…" states on the top page, detail page, and search results page with the Spinner
  • On the search results page, render the Spinner standalone instead of passing rangeText="Loading…" into SearchResultsPage, since that could misleadingly show the "no sites found" empty state while a request was still in flight

Closes #379

Test plan

  • Throttle network and confirm the top page shows a centered spinner instead of "Loading…" text
  • Confirm the heritage detail page shows the spinner while loading
  • Confirm the search results page shows the spinner (with the search header still visible) while loading, without flashing "no sites found"

Add a centered spinning-circle component to replace the plain "Loading…"
text currently shown across the top, detail, and search results pages.
Replace the plain-text "Loading…" paragraph with the Spinner
component.
Replace the plain-text "Loading…" div with the Spinner component.
Previously the loading state rendered the full SearchResultsPage shell
with rangeText="Loading…", which could misleadingly show the "no
sites found" empty state while a request was in flight. Render the
Spinner standalone alongside the search header instead.
@zigzagdev zigzagdev self-assigned this Jun 22, 2026

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@zigzagdev zigzagdev merged commit fcf472b into main Jun 22, 2026
1 check passed
@zigzagdev zigzagdev deleted the feat/loading-spinner branch June 22, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add Spinner component for loading states

1 participant